import req from '@/http/http'
import {getServer} from '@/http/AppApi'

let ZHPQ_SERVER = getServer()

// 重点青少年
// 修改
export const updateFocusTeenager = data => {
  let path = ZHPQ_SERVER + '/focusTeenager/' + data.id
  return req.put(path, data)
}
// 删除
export const delFocusTeenager = data => {
  let path = ZHPQ_SERVER + '/focusTeenager/' + data.id
  return req.delete(path)
}
// 获取 查询 分页
export const findFocusTeenager = param => {
  let path = ZHPQ_SERVER + '/focusTeenager'
  return req.get(path, param)
}
// 新增
export const createFocusTeenager = data => {
  let path = ZHPQ_SERVER + '/focusTeenager/'
  return req.post(path, data)
}
// 获取单条
export const getFocusTeenager = id => {
  let path = ZHPQ_SERVER + '/focusTeenager/' + id
  return req.get(path)
}
